Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Scheduling Assigning Incorrect Span Ids #1178

Merged
merged 2 commits into from
Oct 9, 2023

Conversation

Mythicaeda
Copy link
Contributor

Description

Bug Description: After inserting all the spans from simulation, the scheduler generates a map from its internal span ids to the ids the DB assigned to the spans. The original loop was missing a ++i statement, meaning all of the Scheduler's span ids ended up mapped to the id of the first span posted. This would cause the scheduler to produce incorrect data when it went to update the parent_id field of the posted child spans.

This bug has been fixed by changing the for-each loop to a for loop.

Verification

A new e2e test was added that schedules a decomposing activity and checks that the post sim results have the correct parentIds assigned to all the spans.

@Mythicaeda Mythicaeda added fix A bug fix scheduling Anything related to the scheduling domain labels Oct 4, 2023
@Mythicaeda Mythicaeda self-assigned this Oct 4, 2023
@Mythicaeda Mythicaeda requested a review from a team as a code owner October 4, 2023 00:03
@Mythicaeda Mythicaeda requested a review from cohansen October 4, 2023 00:03
@Mythicaeda Mythicaeda temporarily deployed to e2e-test October 4, 2023 00:48 — with GitHub Actions Inactive
@Mythicaeda Mythicaeda force-pushed the fix/scheduling-post-spans branch from 02a369c to 6316e7a Compare October 9, 2023 16:01
@Mythicaeda Mythicaeda temporarily deployed to e2e-test October 9, 2023 16:01 — with GitHub Actions Inactive
Copy link
Contributor

@adrienmaillard adrienmaillard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Mythicaeda Mythicaeda force-pushed the fix/scheduling-post-spans branch from 6316e7a to 4a61f76 Compare October 9, 2023 16:55
@Mythicaeda Mythicaeda temporarily deployed to e2e-test October 9, 2023 16:55 — with GitHub Actions Inactive
@Mythicaeda Mythicaeda merged commit 1202433 into develop Oct 9, 2023
6 checks passed
@Mythicaeda Mythicaeda deleted the fix/scheduling-post-spans branch October 9, 2023 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix A bug fix scheduling Anything related to the scheduling domain
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Activity directives disappear when running simulation after scheduling
2 participants